<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<base href="<?php echo site_url('static/weixincard/'.$wechat['weixincardtpl'])?>/">
<meta name="copyright" content="">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<title><?php echo $common[0]['title']?></title>
<meta name="keywords" content="" />
<meta itemprop="description" name="description" content="" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script src="<?php echo URLPRE?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/mobile/js/slider.js"></script>
<style>
  .banner-micro1 li:nth-child(1) img,.banner-micro1 li:nth-child(2) img{
    margin-top:0!important;
  }
  .banner-micro1 li:nth-child(2n) img {
    margin-right: 0;
  }
  .banner-micro1 img {
    width: 48%!important;
    float: left;
    margin-right: 4%;
    height: 100px;  margin-top: 10px;
  }
  li.click{
    width: 33%!important;
  }
  .m-store-header{
    margin-top:2rem;
  }
</style>
</head>
<body>
<div class="global">
  <header>
    <?php if($info['realname']){?>
    <div class="micro-header">
      <div class="micro-logo" style="background-image:url(<?php echo $GLOBALS['config']['sitelogo']?>)"> </div>
      <div class="m-store-header ">
        <div class="msheader">
          <div class="header_icon"> </div>
          <div class="header"> <a href="tel:<?php echo $info['mobile']?>"> <img src="<?php echo URLPIC.$info['avatar']?>" alt="<?php echo $company?>"></a> </div>
        </div>
        <p class="people-name"> <?php echo $info['realname']?><span onclick="javascript:window.location.href='tel:<?php echo $info['mobile']?>'"><?php echo $info['mobile']?></span> </p>
        <p class="store-name"> <?php echo $company?> </p>
      </div>
    </div>

      <div class="micro-search">
        <div class="ms-box">
          <form action="<?php echo  site_url('/mobile/line/index/').'/'?>" method="get" id="searchForm" accept-charset="utf-8">
            <input name="keyword" type="text" class="msearch-key" id="txtSearch" placeholder="想去哪儿,从这里开始...">
            <input type="hidden" name="cat_id" value="0" />
            <input type="submit" class="searchGo" value="">
          </form>
        </div>
      </div>

    <?php }else{?>
        <div class="topside"><div class="toback"></div>
          <div class="pagetitle"> <b><?php echo $common[0]['head']?></b></div>
          <div class="otherFun  header-menu-btn"> <a href="javascript:;" class="q"></a> </div>
        </div>
    <?php }?>

  </header>

  <div class="banner-micro" id="banner">
      <div class="box" id="slider">
        <?php
        $tpl = <<<TEMPLATE
<ul>
    {listinfo}<li><a href="{link}"> <img src="{pic}" alt="{title}"></a></li>{/listinfo}
</ul>
TEMPLATE;
        diy('weixin_card48', 'imagelist', $tpl);
        ?>
        <script type="text/javascript">
          $(function(){
            var slid = $("#slider").slider({
              loop: true
            });
          });
        </script>
      </div>
      <div class="m-b-icon"> </div>
    </div>
  <nav>
    <div class="micro-main-nav">
      <ul>
        <li><a href="<?php echo site_url('mobile/line?cat_id=2');?>"><span><i>1</i></span><br />周边游</a></li>
        <li><a href="<?php echo site_url('mobile/line?cat_id=1');?>"><span><i>2</i></span><br />国内游</a></li>
        <li><a href="<?php echo site_url('mobile/line?cat_id=3');?>"><span><i>3</i></span><br />出境游</a></li>
        <li><a href="<?php echo site_url('mobile/line?mark=尾单');?>"  ><span><i>4</i></span><br />尾单</a></li>
        <li><a href="<?php echo $ctrip_flight;?>" ><span><i>5</i></span><br />机票</a></li>
        <li><a href="<?php echo site_url('mobile/scenery/index');?>"><span><i>6</i></span><br />门票</a></li>
        <li><a href="<?php echo $ctrip_hotel ;?>"                   ><span><i>7</i></span><br />酒店</a></li>
        <li><a href="<?php echo site_url('mobile/trips/index?category=1');?>" ><span><i>8</i></span><br />美食</a></li>
      </ul>
    </div>
  </nav>
  <section id="webContent">
    <div class="banner-micro1" id="banner">
      <div class="de-title">热门推荐</div>
      <div class="box">
        <ul>
          <?php
          $template = <<<TPL
{listinfo}<li><a href="{link}"><img src="{pic}" alt="{title}" style="display: inline;"></a></li>{/listinfo}
TPL;
        diy('index_body_hot_destination_line', 'imagelist', $template)
          ?>
        </ul>
      </div>
      <div class="m-b-icon"> </div>
    </div>
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line">
        <ul>
          <li class="this"><a href="<?php echo site_url('mobile/line?cat_id=2')?>">周边</a></li>
          <li><a href="<?php echo site_url('mobile/line?cat_id=1')?>">国内</a></li>
          <li><a href="<?php echo site_url('mobile/line?cat_id=3')?>">出境</a></li>
        </ul>
        热门线路 </div>
      <div class="de-content">
        <?php

        $tpl = <<<HTML
{linelist}
<dl class="de-hot-line">
    <dt><a href="{link}" title="{line_name}"> <img src="{line_thumb}" alt="{line_name}"></a></dt>
    <dd> <a href="{link}" title="{line_name}">
            <p class="t">{line_name} </p>
            <p class="i"> <span>{dollar}{low_price}</span> {line_trait} </p>
    </a> </dd>
</dl>{/linelist}
HTML;
        if(!empty($info['lines'])){
          $CI = new CI_Module();
          $CI->load->model('diy.diy_model');
          $CI->diy_model->__init_CI(1);
          echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
        }else{
          diy('mobile_hotline_02', 'linelist', $tpl);
        }
?>
      </div>
    </div>
    <div class="hot-destination">
      <style type="text/css">
        .destination_zhoubian li:last-child{width:100%!important}
      </style>
      <div class="de-title"> 目的地索引 </div>
      <div class="de-content">
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=2')?>'><span><i class='top'></i><i class="bottom"></i></span><br />周边</a></dt>
            <dd class="destination_zhoubian" style="min-height:90px">
              <?php
              $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
              diy('mobile_destination_01', 'fontlist', $tpl)?>
            </dd>
          </dl>
        </div>
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=1')?>'><span><i class='top'></i><i class="bottom"></i></span><br /> 国内</a></dt>
            <dd>
              <?php
              $tpl = <<<HTML
<ul>
{prolist}<li><a href='{mobile_link}&cat_id=1'>{name}</a></li>{/prolist}
</ul>
HTML;
              diy('mobile_destination_04', 'prolist', $tpl)?>
              <li class='click'><a href='<?php echo site_url('mobile/line?cat_id=1')?>' class='hasmore'><img src="<?php echo URLPRE?>static/template/xuzhou/mobile/images/arrow_to_bottom.png"></a></li>
            </dd>
          </dl>
        </div>
        <div class='ad-box-p'>
          <dl class='de-all-area'>
            <dt><a href='<?php echo site_url('mobile/line?cat_id=3')?>'><span><i class='top'></i><i class="bottom"></i></span><br />
                出境</a></dt>
            <dd>
              <?php
              $tpl = <<<HTML
<ul>
{links}<li><a href='{link}'>{name}</a></li>{/links}
</ul>
HTML;
              diy('mobile_destination_03', 'fontlist', $tpl)?>
              <li class='click'><a href='<?php echo site_url('mobile/line?cat_id=3')?>' class='hasmore'><img src="<?php echo URLPRE?>static/template/xuzhou/mobile/images/arrow_to_bottom.png"></a></li>
            </dd>
          </dl>
        </div>
      </div>
    </div>
  </section>
<!--    <div class="kaidian"><a href="#">我要开店</a></div>-->

  <style type="text/css">
    .store-tools ul li{
      width:25%;
    }
  </style>
  <footer <?php echo $_GET['id']>0? 'style="margin:0 0 50px 0"' : '';?>>
    <div class="store-copy">
      <?php
      @$user_id = $this->session->userdata('user_id');
      @$admin_user_id = $this->session->userdata('admin_user_id') ;
      if(!$user_id && !$admin_user_id){
        ?>
        <a href="<?php echo site_url('/mobile/member/login')?>">登陆</a>
        <a href="<?php echo site_url('/mobile/member/register')?>">注册</a>
      <?php }?>
      <p> 旅游许可证编号：<?php echo $licence?> <?php echo $site_record_num;?><br />
        <?php echo $company;?> 品牌授权<br>技术支持：浩楠网络科技</p>
    </div>
    <div class="store-tools">
      <ul>
        <li class="this"><a href="<?php echo site_url(INWECHAT&&$_COOKIE['from_card'] ? 'mobile/member/card/?eid='.$_COOKIE['from_card'] : 'mobile/index')?>"><i></i>
            <p> 首页</p>
          </a></li>
        <li><a href="tel:<?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><i></i>
            <p> 电话</p>
          </a></li>
        <li><a href="<?php echo site_url('mobile/member/center');?>"><i></i>
            <p> 我的</p>
          </a></li>
        <li style="display:none;"><a href="#"><i></i>
            <p> 留言</p>
          </a></li>
        <li><a href="javascript:scroll(0,0);"><i></i>
            <p> 顶部</p>
          </a></li>
      </ul>
    </div>
  </footer>
</div>
<?php echo $sharehtml?>
</body>
</html>
